{extend name="admin@public:base" /}
{block name="main-row-content"}
<div class="page-header">
	<h3 class="widget-title grey lighter">
		<i class="ace-icon fa fa-leaf green"></i>
		系统设置
	</h3>
</div><!-- /.page-header -->
<div class="row">
    <div class="builder-tabs builder-form-tabs mb-20">
        <ul class="nav nav-tabs">
           <li class=""><a href="{:url('admin/sys/sys_basic_set')}">基本</a></li>
            <li class=""><a href="{:url('admin/sys/sys_basic_sys')}">系统</a></li>
            <li class=""><a href="{:url('admin/sys/sys_upload_set')}">上传</a></li>
            <li class=""><a href="{:url('admin/sys/sys_basic_weblog')}">日志</a></li>
            <li class="active"><a href="{:url('admin/sys/sys_basic_database')}">数据库</a></li>
       </ul>
    </div>
	<div class="col-xs-12 padding-top-30">
		<!-- PAGE CONTENT BEGINS -->
		<form class="form-horizontal ajaxForm3" action="{:url('admin/Sys/sys_basic_rundatabase')}" method="post">
		    <div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="form-field-1">数据库备份根路径：</label>
				<div class="col-sm-10">
					<input type="text"  name="filePath" placeholder="数据库备份根路径"  value="{$datacon.filePath}" class="col-xs-4"/>
				</div>
				
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="form-field-1">数据库备份卷大小：</label>
				<div class="col-sm-10">
				    <input   id="spinner" name="partSize" type="text" placeholder="数据库备份卷大小"  class="col-xs-4" value="{$datacon.partSize}"/>
					<div class="col-sm-5 help-block"><i class="fa fa-info-circle color-info1"></i> 建议不超过20M</div>
				</div>
				
			</div>
			<div class="space-4"></div>
            <div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 数据库备份是否压缩：  </label>
				<div class="col-sm-10">
					<label>
						<input name="gzip" {$datacon.gzip?"":"checked"} type="radio" value="0" checked class="ace">
						<span class="lbl"> 不压缩 </span>&nbsp;&nbsp;
					</label>
					<label>
						<input name="gzip" type="radio" {$datacon.gzip?"checked":""} value="1" class="ace">
						<span class="lbl"> 启用压缩 </span>
					</label>
				</div>
			</div>
            <div class="space-4"></div>
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 数据库备份文件压缩级别：  </label>
				<div class="col-sm-10">
					<label>
						<input name="compress" type="radio" {$datacon.compress==1?"checked":""} value="1" checked class="ace">
						<span class="lbl"> 普通 </span>&nbsp;&nbsp;
					</label>
					<label>
						<input name="compress" type="radio" {$datacon.compress==4?"checked":""} value="4" class="ace">
						<span class="lbl"> 一般 </span>
					</label>
					<label>
						<input name="compress" type="radio" {$datacon.compress==9?"checked":""} value="9" class="ace">
						<span class="lbl"> 较高 </span>
					</label>
				</div>
			</div>
            <div class="space-4"></div>
			<div class="clearfix">
				<div class="col-md-offset-3 col-md-9 ">
					<button class="btn btn-info btn-sm btn-radius" type="submit">
						<i class="ace-icon fa fa-check bigger-110"></i>
						提交并保存
					</button>

					&nbsp; &nbsp; &nbsp;
					<button class="btn btn-success btn-sm btn-radius" type="submit">
						<i class="ace-icon fa fa-undo bigger-110"></i>
						重置
					</button>
				</div>
			</div>

			
		</form>
	</div><!-- /.col -->
</div><!-- /.row -->
{/block}
{block name="script"}
<script type="text/javascript">
$(function(){
//spinner
var spinner = $( "#spinner" ).spinner({
	create: function( event, ui ) {
		alert(1)
		//add custom classes and icons
		$(this)
		.next().addClass('btn btn-success').html('<i class="ace-icon fa fa-plus"></i>')
		.next().addClass('btn btn-danger').html('<i class="ace-icon fa fa-minus"></i>')
		
		//larger buttons on touch devices
		if('touchstart' in document.documentElement) 
			$(this).closest('.ui-spinner').addClass('ui-spinner-touch');
	}
});
</script>
{/block}
